buildDisclosableArray

inline fun buildDisclosableArray(minimumDigests: Int?, builderAction: DisclosableArraySpecBuilder.() -> Unit): DisclosableArray(source)

A convenient method for building a DisclosableArray given a builderAction

val arr = buildDisclosableArray{
// adds non-selectively disclosable primitive
notSd("DE")
// adds selectively disclosable primitive
sd("GR")
// add selectively disclosable object
sd("over_18", true)
sd("over_25", false)

}

Return

the DisclosableArray described by the builderAction

Parameters

minimumDigests

This is an optional hint; that expresses the minimum number of digests at the immediate level of this DisclosableObject, that the SdJwtFactory will try to satisfy. SdJwtFactory will add decoy digests if the number of actual DisclosureDigest is less than the hint